{% extends 'base.html' %}
{% block title %}
    <title>登录</title>
{% endblock %}

{% block css %}
<style>

</style>
{% endblock %}

{% block js %}
<script>

</script>
{% endblock %}

{% block body %}
<div class="row">
                <div class="col-sm-6 col-sm-offset-3">
                    <form action="" method="post">
                       {% csrf_token %}
                      <div class="form-group">
                          {{ lgf.username.label_tag }}
                          {{ lgf.username }}

                      </div>
                      <div class="form-group">
                          {{ lgf.password.label_tag }}
                          {{ lgf.password }}

                      </div>
                        {% if error %}
                        <div class="form-group">
                            <p class="text-danger">{{ error }}</p>
                        </div>
                        {% endif %}
                      <button type="submit" class="btn btn-default">登录</button>
                      <button type="button" class="btn btn-default navbar-btn"><a href="{% url 'user:register' %}">去注册</a></button>
                    </form>


                </div>
            </div>

{% endblock %}